package com.han.hotelplat.pojo.systemuser;

import java.util.ArrayList;
import java.util.List;


/**
 * TbPermission entity. @author MyEclipse Persistence Tools
 */

public class Permission implements java.io.Serializable {

	// Fields

	/**   
		 *   
		 */   
		
	private static final long serialVersionUID = 1L;
	private Integer permissionid;
	private String name;
	private String url;
	private String permission;
	private Integer groupid;
	
	//角色列表
	private List<Role> roles = new ArrayList<Role>();

	// Constructors

	/** default constructor */
	public Permission() {
	}

	/** full constructor */
	public Permission(String name, String url, String permission, Integer groupid) {
		this.name = name;
		this.url = url;
		this.permission = permission;
		this.groupid = groupid;
	}
	
	public Permission(Integer permissionid , String name, String url, String permission, Integer groupid) {
		this.permissionid = permissionid;
		this.name = name;
		this.url = url;
		this.permission = permission;
		this.groupid = groupid;
	}

	// Property accessors

	public Integer getPermissionid() {
		return this.permissionid;
	}

	public void setPermissionid(Integer permissionid) {
		this.permissionid = permissionid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPermission() {
		return this.permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public Integer getGroupid() {
		return groupid;
	}

	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
}